import socket
import time
import itertools
link = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
link.connect(('192.168.43.41',2233))
try:
    for x in itertools.cycle(range(1,10)):
        link.send(str(x).encode())
        time.sleep(0.3)
        print(66)
except:
    link.close()
    print(55)
